package com.hertz.alarm.service;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;

import com.hertz.alarm.entity.Team;

public interface TeamNbaService {
	@Cacheable(value="team",key="#id")
	public Team getTeam(Short id);
	/**
	 * 获取所有nba球队
	 * type=1,league=1
	 * @return
	 */
	public List<Team> findAll();
	@Cacheable(value="team",key="'source_' + #sourceId")
	public Team getTeamBySourceId(String sourceId);
}
